package com.sdwl.brcl.exception;

/**
 * 自定义异常
 *
 * @version v1.0
 * @className: NoteException
 * @author: heyiheng
 * @date: 2021-10-28 19:17
 */
public class NoteException extends RuntimeException {

	/**
	 * 页面转跳参数
	 */
	private int code;

	public NoteException(String message) {
		this(message, 0);
	}

	public NoteException(String message, int code) {
		super(message);

		this.code = code;
	}

	public NoteException(Throwable cause) {
		this(cause, 0);
	}

	public NoteException(Throwable cause, int code) {
		super(cause);

		this.code = code;
	}

	public int getCode() {
		return code;
	}
}
